//
//  OrderListModel.h
//  LuxuryGoods
//
//  Created by DCQ on 2018/7/20.
//  Copyright © 2018年 Future. All rights reserved.
//

#import "BaseModel.h"

@class OrderModel;
@protocol OrderModel;
@interface OrderListModel : BaseModel
@property (nonatomic, strong) NSMutableArray <OrderModel>* data;
@end


@class GoodsModel;
@protocol GoodsModel;
@interface OrderModel : BaseModel
@property (nonatomic, copy) NSString  * order_no;//订单号
@property (nonatomic, strong) NSNumber  * order_id;//订单id
@property (nonatomic, copy) NSString  * pay_price;//价格
@property (nonatomic, strong) NSNumber  * pay_type;// 支付方式 1-支付宝 2-微信 3-余额 10-分期
@property (nonatomic, strong) NSNumber  * status;//订单状态( 0-待付款 10-待发货 20-待收货 30-待评价 40-已完成 50-退款中 51-退款被拒绝 60 -退款成功 90-已取消) ------ 鉴定/养护(0-待付款 10-待寄件 11-待养护/鉴定 20-待收货 30-待评价 40-已完成 50-退款申请中 51-退款已拒绝 60-退款成功 90-已取消)     ------ 回收/寄卖（ 0-待报价 10-已报价 20-已寄件 30-出售中(寄卖专用) 40-已完成 90-已取消）

@property (nonatomic, copy) NSString  * pay_time;//支付时间
@property (nonatomic, strong) NSMutableArray <GoodsModel>*goods_item;//订单商品信息


@end


@interface GoodsModel : BaseModel
@property (nonatomic, strong) NSNumber  * order_goods_id;//订单商品ID
@property (nonatomic, strong) NSNumber  * goods_id;//商品ID
@property (nonatomic, copy) NSString  * unit_price;//价格
@property (nonatomic, strong) NSNumber  * buy_num;//购买数量
@property (nonatomic, copy) NSString  * goods_img;// 订单 商品图片
@property (nonatomic, copy) NSString  * cate_img;// 养护鉴定 商品图片
@property (nonatomic, strong) NSArray  *  img_list;// 寄卖 回收  商品图片
@property (nonatomic, copy) NSString  * goods_title;//商品标题
@end



//详情页

@class OrderInfoModel;
@protocol OrderInfoModel;
@interface OrderDetailModel : BaseModel
@property (nonatomic, strong) OrderInfoModel* data;
@end

@class GoodsModel;
@protocol GoodsModel;
@interface OrderInfoModel : BaseModel
@property (nonatomic, copy) NSString  * order_no;//订单号
@property (nonatomic, strong) NSNumber  * order_id;//订单id

@property (nonatomic, strong) NSNumber  * pay_type;// 支付方式 1-支付宝 2-微信 3-余额 10-分期
@property (nonatomic, strong) NSNumber  * status;//订单状态 0-待付款 10-待发货 20-待收货 30-待评价 40-已完成 50-退款中 51-退款被拒绝 60 -退款成功 90-已取消
@property (nonatomic, copy) NSString  *createtime;//订单创建时间
@property (nonatomic, copy) NSString  * pay_time;//支付时间
@property (nonatomic, strong) NSMutableArray <GoodsModel>*goods_item;//订单商品信息

@property (nonatomic, copy) NSString  * address_user;//收件人
@property (nonatomic, copy) NSString  * address_tel;//收件人电话
@property (nonatomic, copy) NSString  * address;//收货地址
@property (nonatomic, copy) NSString  * express_name;//快递公司名
@property (nonatomic, copy) NSString  *express_no;//快递单号
@property (nonatomic, copy) NSString  * send_time;//发货时间
@property (nonatomic, strong) NSNumber  * refund_id;//退款ID
@property (nonatomic, copy) NSString  * all_total_price;//订单金额  float
@property (nonatomic, copy) NSString  * redpack_discount;//红包抵扣金额 float
@property (nonatomic, copy) NSString  * coupon_discount;//优惠券抵扣金额 float
@property (nonatomic, copy) NSString  * pay_price;//订单支付金额 float
@end

